package com.funny.stock.data.dao.repo;

import com.funny.stock.data.dao.entity.StockDO;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface StockRepository extends JpaRepository<StockDO,Long>, JpaSpecificationExecutor<StockDO> {

    StockDO findByCode(String code);

    List<StockDO> findByCodeIn(List<String> code);


}